package napier.sadari;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MultiGameActivity extends Activity {
	
	Button testSBtn;
	Button testCBtn;
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.multi_activity);
        
        
        testSBtn = (Button)findViewById(R.id.testSBtn);
        testCBtn = (Button)findViewById(R.id.testCBtn);
        
        setBtnAction();        
    }    

	private void setBtnAction(){
        
		testSBtn.setOnClickListener(new OnClickListener(){
        	public void onClick(View v){        		
        		Intent aIntent = new Intent(MultiGameActivity.this, MultiGameActivity_Server.class);        		        		
        		startActivity(aIntent);
        	}
        });
		
		testCBtn.setOnClickListener(new OnClickListener(){
        	public void onClick(View v){        		
        		Intent aIntent = new Intent(MultiGameActivity.this, MultiGameActivity_Client.class);        		        		
        		startActivity(aIntent);
        	}
        });
	
		
		
	}
	
}